package cn.silver.framework.message.event;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@Schema(name = "MessageEvent", title = "消息通知对象")
public class MessageEvent implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 消息类型
     */
    @Schema(title = "消息类型")
    private String type;

    /**
     * 消息主题
     */
    @Schema(title = "消息主题")
    private String subject;
    /**
     * 推送内容
     */
    @Schema(title = "推送内容")
    private String content;
    /**
     * 发送渠道
     */
    @Schema(title = "发送渠道")
    private String channel;

    /**
     * 关联业务
     */
    @Schema(title = "关联业务")
    private String busId;
    /**
     * 处理地址
     */
    @Schema(title = "处理地址")
    private String busUrl;
    /**
     * 消息模板
     */
    @Schema(title = "消息模板")
    private String templateId;
}
